package cn.edu.jsu.zjj.service;

import cn.edu.jsu.zjj.model.dto.ay.AyQueryRequest;
import cn.edu.jsu.zjj.model.entity.Ay;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 学年表 服务类
 * </p>
 *
 * @author fyt
 * @since 2024-05-12
 */
public interface AyService extends IService<Ay> {

    /**
     * 获取查询条件
     * @param ayQueryRequest
     * @return
     */
    QueryWrapper getQueryWrapper(AyQueryRequest ayQueryRequest);

    boolean getTime(LocalDate createTime, LocalDate endTime);

    boolean getTerm(String term);

    boolean getTimeSelect(LocalDate createTime, LocalDate endTime);

    List<Ay> findAllTerms();
}
